#my common functions, more are only use to debug
def print_request_user(request):
    if hasattr(request, 'user'):
        print "DEBUG(request.user: %s" % request.user

def print_request_session(request):
    if hasattr(request, 'session'):
        print "DEBUG(request.session: %s" % request.session.items()

def print_request_cookie(request):
    if hasattr(request, 'COOKIES'):
        print "DEBUG(request.COOKIES: %s" % request.COOKIES
